//
//  PacketBodyBuffer.h
//  HelloWorld
// *********************************************************************
// This handy class hides most of the pain of building the Yahoo message
// body.  Each body consists of key/value pairs (or sometimes just keys)
// with each field separated by the sequence 0xc080
//
// Note: this class is NOT thread safe (although, to be honest, building 
// a single message body from more than one independent thread is surely 
// asking for trouble?!??)
// *********************************************************************
//  Created by Martin Le C. on 5/14/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
extern UInt8 const SEPARATOR[]; 

@interface PacketBodyBuffer : NSObject {
	NSMutableData* baos;
}
@property (nonatomic, assign) NSMutableData* baos;
-(void)addString:(NSString*)s;
-(void)addElement:(NSString*)key value:(NSString*)value;
-(void)reset;
@end